package com.example.contentproviders;

import android.net.Uri;

public class CitizenTable {
	public static final String TABLE_NAME = "citizen_table";

	/**
	 * DEFINE THE TABLE
	 */

	// ID COLUMN MUST LOOK LIKE THIS
	public static final String ID = "_id";

	public static final String NAME = "name";

	public static final String STATE = "state";

	public static final String INCOME = "income";

	/**
	 * DEFINE THE CONTENT TYPE AND URI
	 */

	// THE CONTENT URI TO OUR PROVIDER
	public static final Uri CONTENT_URI = Uri.parse("content://"
			+ CitizenContentProvider.AUTHORITY + "/citizen");

	// MIME TYPE FOR GROUP OF CITIZENS
	public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.jwei512.citizen";

	// MIME TYPE FOR SINGLE CITIZEN
	public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.jwei512.citizen";

	// RELATIVE POSITION OF CITIZEN SSID IN URI
	public static final int SSID_PATH_POSITION = 1;

}
